import datetime
from apps.extensions import db

class Themes(db.Model):
    __tablename__ = 'sys_themes'
    id = db.Column(db.Integer, primary_key=True, comment='主题编号')
    name = db.Column(db.String(255),comment='主题名称')
    screenshot = db.Column(db.String(255),comment='主题截图')
    description = db.Column(db.Text,comment='主题描述')
    author = db.Column(db.String(50),comment='作者')
    author_and_uri = db.Column(db.String(255),comment='作者地址')
    version = db.Column(db.String(20),comment='版本')
    active = db.Column(db.Integer,comment='是否启用')
    has_update = db.Column(db.Integer,comment='是否有更新')
    update_uri = db.Column(db.String(255),comment='更新地址')
    create_time = db.Column(db.DateTime, default=datetime.datetime.now, comment='创建时间')
    update_time = db.Column(db.DateTime, default=datetime.datetime.now, onupdate=datetime.datetime.now, comment='更新时间')